| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | 'use strict'; |
||
| 8 | exports.run = function(args, callback) { |
||
| 9 | args.unshift.apply(args, [path.join(__dirname, 'driver.js'), '--web-security=false', '--load-images=false', '--ignore-ssl-errors=yes', '--ssl-protocol=any']); |
||
| 10 | |||
| 11 | var driver = phantomjs.exec.apply(this, args); |
||
| 12 | |||
| 13 | driver.stdout.on('data', (data) => { |
||
| 14 | callback(`${data}`, null); |
||
| 15 | }); |
||
| 16 | |||
| 17 | driver.stderr.on('data', (data) => { |
||
| 18 | callback(null, `${data}`); |
||
| 19 | }); |
||
| 20 | } |
||
| 21 | |||
| 33 |